﻿using System.Collections.Generic;
using eCommerce.core.Helpers;

namespace eCommerce.core.AdminGroup
{
    public class AdminGroupController
    {
        public static List<AdminGroupObject> AdminGroup_GetAll()
        {
            return ObjectHelper.FillCollection<AdminGroupObject>(AdminGroupDAL.AdminGroup_GetAll());
        }

        public static AdminGroupObject AdminGroup_GetById(int id)
        {
            return ObjectHelper.FillObject<AdminGroupObject>(AdminGroupDAL.AdminGroup_GetById(id));
        }

        public static int AdminGroup_Create(AdminGroupObject o)
        {
            return AdminGroupDAL.AdminGroup_Create(o);
        }

        public static void AdminGroup_Update(AdminGroupObject o)
        {
            AdminGroupDAL.AdminGroup_Update(o);
        }

        public static void AdminGroup_Delete(int id)
        {
            AdminGroupDAL.AdminGroup_Delete(id);
        }
    }
}
